<div id="maincontent">
	<div id="maincontent_inner">
		<div id="sidebar">
			<div class="menu single">
				<ul>
					<li><a href="#">注册车辆管理</a>
						<ul>						 
							<li class="current"><a href="<?php echo site_url("c=user_car&m=index"); ?>">注册车辆列表</a></li>
							<li><a href="<?php echo site_url("c=user_car&m=map"); ?>">车辆地区分布图</a></li>

						</ul>
					</li>
				</ul>
			</div>
		</div>
		<div id="content">
			<div class="title">注册车辆列表</div>
			<div class="infoarea">
				<form name="titleSearchForm" action="<?php echo site_url("c=user_car&m=index"); ?>" method="post">
				<div class="box">
					所属用户：<input type="text" size="16" name="username"  value="<?php echo $params['username'];?>"/> 
					车牌号：<input type="text" size="16" name="carno"  value="<?php echo $params['carno'];?>"/> 
					<input type="submit" class="btn" value="查询"/>
				</div>
				</form>
				<table border="0" cellspacing="0" cellpadding="0" width="100%" class="stylized">
					<tr>
						<th>车牌号</th>
						<th>所属用户</th>
						<th>车辆品牌 | 车系 | 车型</th>
						<th>操作</th>
					</tr>
						 <?php 
					if($count)
					{
					foreach($list as $user_car){ ?>
					<tr>
						<td><?php echo $user_car['carno']; ?></td>
						<td><?php echo $user_car['username']; ?></td>
						<td><?php echo $user_car['brandname']; ?> &gt; <?php echo $user_car['seriesname']; ?> &gt; <?php echo $user_car['carname']; ?> </td>
						 
						<td>   <a href="#">查看车辆保养项目</a> | <a href="<?php echo site_url("c=user_car&m=delete&id=$user_car[id]"); ?>" onclick="return confirm('确认要删除当前记录吗？')">删除</a></td>
					</tr>
					 <?php }
					}
					else
					{?>

					<tr>
						<td colspan="2"> 无记录 </td>
					</tr>
					 <?php  
					}
					 ?>
 
					 
				</table>
				<div id="pager" class="pagebar">
					 <?php  
					 echo $pagelink;
					 ?>
					
				</div>
			</div>
		</div>
	</div>
</div>